package com.ihomey.linkuphome.ui

import android.content.Intent
import android.os.Bundle
import android.os.Handler
import com.ihomey.linkuphome.R
import com.ihomey.linkuphome.base.BaseActivity
import com.ihomey.linkuphome.database.MeshSQLHelper
import java.util.*

/**
 * Created by Administrator on 2017/6/16.
 */
class SplashActivity : BaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        setDefaultLanguage(Locale.CHINESE.toString())
        super.onCreate(savedInstanceState)
        hideToolbar()
        setContentView(R.layout.activity_splash)

        Handler().postDelayed({
            MeshSQLHelper(this).writableDatabase
            startActivity(Intent(this, MainActivity::class.java))
            finish()
        },500)

    }
}